<?php

namespace Api\UserProposal;

use Pinenut\Action\JSON;
use \Round;

/**
 * Сохраняем предложение пользователя
 *
 * @author kosh
 *        
 */
class CreateAction extends JSON {
	protected function run() {
		$type = $this->request->type;
		$id = $this->request->id;
		$params = $this->request->params;
		
		\UserProposal::createProposal ( $this->request->getSessionId (), $type, $id, $params );
		
		return 'Ok';
	}
}